package com.yf1706.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.yf1706.comm.RowMapper;

public class userRowMapper implements RowMapper<userbean>{

	@Override
	public userbean mapper(ResultSet rs) throws SQLException {
		userbean user=new userbean();
	    user.setId(rs.getInt("id"));
	    user.setName(rs.getString("name"));
	    user.setAge(rs.getInt("age"));
	    user.setSex(rs.getInt("sex"));
	    user.setRiqi(rs.getDate("riqi"));
		return user;
	}

}
